package net.scdx.hotel.service;

import net.scdx.hotel.entity.Hotel;

import java.util.Date;
import java.util.List;

public interface HotelService {
    /**
     * query hotels
     */
    List<Hotel> queryHotels(Hotel hotel, int pageIndex, int pageSize, Date checkinTime, Date checkoutTime) throws Exception;

    List<Hotel> queryHotelsByDistance(Hotel hotel, int pageIndex, int pageSize, String maxLong, String minLong,
                                      String maxLat, String minLa,Date checkinTime,Date checkoutTime) throws Exception;

    /**
     * find hotel info by id
     */
    Hotel queryHotel(Integer hotelId) throws Exception;

    void deleteHotelById(Integer hotelId) throws Exception;

    List<Hotel> hotelsInfo(Integer adminId) throws  Exception;

    void updateHotel(Hotel hotel) throws  Exception;

    int addHotel(Hotel hotel) throws  Exception;

}
